from itertools import count

name="itheima is a brand of itcast"
count=0
for n in name:
    if n=='a':
        count+=1
print(f'"itheima is a brand of itcast中有{count}个a"')